import axios from '@/libs/api.request'

// 查询广告位分页列表
export const getadPlaceList = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad_place/list',
    method: 'post',
    data: data
  })
}

// 广告位启用禁用
export const adplaceStatusChange = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad_place/status/change',
    method: 'post',
    data: data
  })
}

// 保存或者更新广告位
export const adplaceSave = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad_place/save',
    method: 'post',
    data: data
  })
}

// 查询单个广告位详情
export const adplaceGet = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad_place/get',
    method: 'post',
    data: data
  })
}

// 广告上架下架
export const adStatusChange = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad/status/change',
    method: 'post',
    data: data
  })
}

// 保存或者更新广告
export const adSave = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad/save',
    method: 'post',
    data: data
  })
}

// 查询广告分页列表
export const getadList = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad/list',
    method: 'post',
    data: data
  })
}

// 查询单个广告详情
export const adGet = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad/get',
    method: 'post',
    data: data
  })
}

// 广告上移下移
export const adSeqChange = (data) => {
  return axios.request({
    url: '/oms/merchant/ad_admin/ad/seq/change',
    method: 'post',
    data: data
  })
}
